Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimizer] Add master weight for opt state_dict #39121

Merged

Conversation

zhangbo9674
Copy link
Contributor

PR types

New features

PR changes

APIs

Describe

对于FP16训练,master weiights用于存储FP16参数对应的FP32参数,以此提高参数更新的精度。
本pr将master weights加入state_dict中,作为优化器参数的一部分来存储。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

zhiqiu
zhiqiu previously approved these changes Jan 26, 2022
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhangbo9674 zhangbo9674 merged commit 3e6950d into PaddlePaddle:develop Jan 27, 2022
@zhangbo9674 zhangbo9674 deleted the dev/optimizer_save_master_weight branch March 2, 2023 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants